<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/admin/index.js'),AdminAsset::class);
?>
<div class="layui-card">
    <div class="layui-card-header">管理员列表</div>
    <div class="layui-card-body">
        <form class="layui-form" id="serch-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <a href="<?= GlobalUrlService::buildAdminUrl('admin/add-admin')?>" class="layui-btn layui-btn-normal addNews_btn ">添加管理员</a>
                </div>
            </div>
        </form>
        <div class="layui-form-item">
            <table class="layui-hide" id="user"  lay-filter="barDemo"></table>
        </div>
    </div>
</div>

<script type="text/html" id="barDemo">
    {{# if(d.id != 1){ }}
    <a class="layui-btn layui-btn-xs" lay-event="updateAdmin">修改</a>
    <a class="layui-btn layui-btn-xs" lay-event="delAdmin">删除</a>
    {{# }}}
</script>

